﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace MultiTenant.SeparateSchema.Api.Migrations.TenantB
{
    /// <inheritdoc />
    public partial class initial_TenantB : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.EnsureSchema(
                name: "tenantB");

            migrationBuilder.RenameTable(
                name: "Products",
                schema: "tenantA",
                newName: "Products",
                newSchema: "tenantB");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.EnsureSchema(
                name: "tenantA");

            migrationBuilder.RenameTable(
                name: "Products",
                schema: "tenantB",
                newName: "Products",
                newSchema: "tenantA");
        }
    }
}
